package com.mxx.mxx.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @author: dronff
 * @description:
 * @CreateTime: 2024/4/19 15:33
 **/
@Data
public class AccountDTO {
    private static final long serialVersionUID = 1L;

    /**
     * 姓名
     */
    @TableField("name")
    @NotBlank(message = "姓名不能为空")
    private String name;

    /**
     * 密码
     */
    @TableField("password")
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 证件号
     */
    @TableField("id_number")
    @NotBlank(message = "证件号不能为空")
    private String idNumber;

    /**
     * 手机号
     */
    @TableField("phone_number")
    @NotBlank(message = "手机号不能为空")
    private String phoneNumber;

    /**
     * 购买区域
     */
    @TableField("buy_area")
    @NotBlank(message = "购买区域不能为空")
    private String buyArea;

    /**
     * 卡号
     */
    @TableField("card_number")
    @NotBlank(message = "卡号不能为空")
    private String cardNumber;

    private BigDecimal balance = BigDecimal.ZERO;
    /**
     * 标签
     */
    @TableField("tag")
    private String tag = "";
}
